package com.xidian.zhiancloud.service.user;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.syset.UserCertificateMapper;
import com.xidian.zhiancloud.model.syset.UserCertificate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 用户-证书
 */
@Service
public class UserCertificateService extends ServiceImpl<UserCertificateMapper, UserCertificate>{

    @Autowired
    UserCertificateMapper userCertificateMapper;
    
    public List<UserCertificate> getUserCertificateList(Long companyId,Long userId){
        return userCertificateMapper.getUserCertificateList(companyId,userId);
    }
    
    public int addUserCertificate(Map<String,Object> map){
        return userCertificateMapper.addUserCertificate(map);
    }
    
    public int updateUserCertificate(String id, Map<String,Object> in){
        return userCertificateMapper.updateUserCertificate(id,in);
    }

    public int deleteUserCertificate(String id){
        return userCertificateMapper.deleteUserCertificate(id);
    }
    
}
